package com.knife.oauth.domain.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 角色菜单关联(IamRoleMenu)实体类
 *
 * @author tianhao.luo@hand-china.com
 * @since 2025-08-13 14:19:29
 */

@Getter
@Setter
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@Table(name = "iam_role_menu")
public class IamRoleMenu {
    private static final long serialVersionUID = 759885798083100866L;

    public static final String FIELD_ROLE_ID = "roleId";
    public static final String FIELD_MENU_ID = "menuId";
    public static final String FIELD_TENANT_ID = "tenantId";

    private Long id;

    private Long roleId;

    @NotNull
    private Long menuId;

    @NotNull
    private Long tenantId;

    private Long objectVersionNumber;

    private Long createdBy;

    private Date creationDate;

    private Long lastUpdatedBy;

    private Date lastUpdateDate;
}

